]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
test: Don't append test env variables
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 23 May 2025 22:19:53 +0000 (00:19 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Sat, 24 May 2025 00:43:29 +0000 (02:43 +0200)
If the specified variable already exists in the environment, append()
will append the value instead of overriding it. This isn't what we
want for the existing use case ("TZ=Europe/Madrid:UTC"), nor for
the case we are about to add.

Change the setup to use set() instead.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3721>

tests/meson.build

index 7a09f3b8317c9979828f1d5afc985f4eaa122899..a75fa6b46ea1db0fe76268c0b297f37356c37e61 100644 (file)
@@ -41,7 +41,7 @@ unit_tests = {
 foreach test, extra_args : unit_tests
   local_test_env = unit_testenv
   foreach var, value : extra_args.get('env', {})
-    local_test_env.append(var, value)
+    local_test_env.set(var, value)
   endforeach
 
   test(test, jasmine,